import { request } from '../config.js'


// 菜单列表
export const getMenuslist = (params) => {
  return request.get({
    url: '/menu/index',
    params
  })
}


// 菜单添加
export const getMenusadd = (params) => {
  return request.postjson({
    url: '/menu/add',
    data: JSON.stringify(params)
  })
}


// 菜单编辑
export const getMenusedit = (params) => {
  return request.postjson({
    url: '/menu/update',
    data: JSON.stringify(params)
  })
}


// 菜单删除
export const getMenusdel = (params) => {
  return request.get({
    url: '/menu/delete/' + params.id,
  })
}

// 菜单详情
export const getMenusinfo = (params) => {
  return request.get({
    url: '/menu/info',
    params
  })
}